package com.lagou.service;

import com.lagou.model.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    //将来客户单要远程调用的方法
    public String sayHello(String msg) {
        System.out.println("成功访问远程方法:" + msg);
        return "success";
    }

    @Override
    public String updateInfo(User user) {
        System.out.println("成果调用远程方法:" + user);
        return "success";

    }

    @Override
    public String getUser(Integer id, String name) {
        System.out.println("成果调用远程方法:id:" + id + ",name:" + name);
        return "success";
    }


}
